package com.redwine.app.net.responses;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 商家主页bean
 * 作者：gassion on 17/8/26 13:25
 * 最可怕的敌人，就是没有坚强的信念。
 */

public class MerchantsPageResponse extends BaseResponse {

    /**
     * data : {"supplier_info":{"id":"1","uid":"1","business":"物流,仓库","title":"商家名称","name":"姓名","tax_num":"3234243242424232","tax_pic":"http://face.com/image/hongjiu/201708/03/162925325664.png","id_pic":"http://face.com/image/hongjiu/201708/03/162925166917.png","date":"2017-08-10 16:29:25.000000","type":"1","reason":null,"id_num":"220283199012071556","avatar":"http://face.com/image/avatar/201704/06/000537584477.png","sex":"1","mobile":"18634680997"},"redwine_info":{"data":[{"id":"4","category":"红酒","produce":"阿根廷","name":"产品名称","city":"秦皇岛市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/225135732285.png,http://face.com/image/hongjiu/201708/04/225135290813.png","date":"2017-08-04 22:51:35.000000","status":"5","uid":"1"},{"id":"3","category":"洋酒","produce":"埃及","name":"产品名称","city":"北京市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192804345358.png,http://face.com/image/hongjiu/201708/04/192804705839.png","date":"2017-08-04 19:28:04.000000","status":"5","uid":"1"},{"id":"2","category":"洋酒","produce":"爱尔兰","name":"产品名称","city":"石家庄市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192243922989.png,http://face.com/image/hongjiu/201708/04/192243338083.png","date":"2017-08-04 19:22:43.000000","status":"5","uid":"1"},{"id":"1","category":"葡萄酒","produce":"阿富汗","name":"产品名称","city":"唐山市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192224375906.png","date":"2017-08-04 19:22:24.000000","status":"5","uid":"1"}],"allpage":1,"page":1}}
     */

    private DataEntityX data;

    public DataEntityX getData() {
        return data;
    }

    public void setData(DataEntityX data) {
        this.data = data;
    }

    public static class DataEntityX {
        /**
         * supplier_info : {"id":"1","uid":"1","business":"物流,仓库","title":"商家名称","name":"姓名","tax_num":"3234243242424232","tax_pic":"http://face.com/image/hongjiu/201708/03/162925325664.png","id_pic":"http://face.com/image/hongjiu/201708/03/162925166917.png","date":"2017-08-10 16:29:25.000000","type":"1","reason":null,"id_num":"220283199012071556","avatar":"http://face.com/image/avatar/201704/06/000537584477.png","sex":"1","mobile":"18634680997"}
         * redwine_info : {"data":[{"id":"4","category":"红酒","produce":"阿根廷","name":"产品名称","city":"秦皇岛市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/225135732285.png,http://face.com/image/hongjiu/201708/04/225135290813.png","date":"2017-08-04 22:51:35.000000","status":"5","uid":"1"},{"id":"3","category":"洋酒","produce":"埃及","name":"产品名称","city":"北京市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192804345358.png,http://face.com/image/hongjiu/201708/04/192804705839.png","date":"2017-08-04 19:28:04.000000","status":"5","uid":"1"},{"id":"2","category":"洋酒","produce":"爱尔兰","name":"产品名称","city":"石家庄市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192243922989.png,http://face.com/image/hongjiu/201708/04/192243338083.png","date":"2017-08-04 19:22:43.000000","status":"5","uid":"1"},{"id":"1","category":"葡萄酒","produce":"阿富汗","name":"产品名称","city":"唐山市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192224375906.png","date":"2017-08-04 19:22:24.000000","status":"5","uid":"1"}],"allpage":1,"page":1}
         */

        private SupplierInfoEntity supplier_info;
        private RedwineInfoEntity redwine_info;

        public SupplierInfoEntity getSupplier_info() {
            return supplier_info;
        }

        public void setSupplier_info(SupplierInfoEntity supplier_info) {
            this.supplier_info = supplier_info;
        }

        public RedwineInfoEntity getRedwine_info() {
            return redwine_info;
        }

        public void setRedwine_info(RedwineInfoEntity redwine_info) {
            this.redwine_info = redwine_info;
        }

        public static class SupplierInfoEntity {
            /**
             * id : 1
             * uid : 1
             * business : 物流,仓库
             * title : 商家名称
             * name : 姓名
             * tax_num : 3234243242424232
             * tax_pic : http://face.com/image/hongjiu/201708/03/162925325664.png
             * id_pic : http://face.com/image/hongjiu/201708/03/162925166917.png
             * date : 2017-08-10 16:29:25.000000
             * type : 1
             * reason : null
             * id_num : 220283199012071556
             * avatar : http://face.com/image/avatar/201704/06/000537584477.png
             * sex : 1
             * mobile : 18634680997
             */

            private String id;
            private int friend_status;
            private String uid;
            private String business;
            private String title;
            private String name;
            private String tax_num;
            private String tax_pic;
            private String id_pic;
            private String date;
            private String type;
            private Object reason;
            private String id_num;
            private String avatar;
            private String sex;
            private String mobile;

            public int getFriend_status() {
                return friend_status;
            }

            public boolean isFriend_status() {
                //1是好友0不是
                return friend_status == 1 ? true : false;
            }

            public void setFriend_status(int friend_status) {
                this.friend_status = friend_status;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getBusiness() {
                return business;
            }

            public void setBusiness(String business) {
                this.business = business;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getTax_num() {
                return tax_num;
            }

            public void setTax_num(String tax_num) {
                this.tax_num = tax_num;
            }

            public String getTax_pic() {
                return tax_pic;
            }

            public void setTax_pic(String tax_pic) {
                this.tax_pic = tax_pic;
            }

            public String getId_pic() {
                return id_pic;
            }

            public void setId_pic(String id_pic) {
                this.id_pic = id_pic;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public Object getReason() {
                return reason;
            }

            public void setReason(Object reason) {
                this.reason = reason;
            }

            public String getId_num() {
                return id_num;
            }

            public void setId_num(String id_num) {
                this.id_num = id_num;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public boolean getSex() {
                //性别1男2女
                if ("1".equals(sex)) {
                    return true;
                } else {
                    return false;
                }
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }
        }

        public static class RedwineInfoEntity {
            /**
             * data : [{"id":"4","category":"红酒","produce":"阿根廷","name":"产品名称","city":"秦皇岛市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/225135732285.png,http://face.com/image/hongjiu/201708/04/225135290813.png","date":"2017-08-04 22:51:35.000000","status":"5","uid":"1"},{"id":"3","category":"洋酒","produce":"埃及","name":"产品名称","city":"北京市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192804345358.png,http://face.com/image/hongjiu/201708/04/192804705839.png","date":"2017-08-04 19:28:04.000000","status":"5","uid":"1"},{"id":"2","category":"洋酒","produce":"爱尔兰","name":"产品名称","city":"石家庄市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192243922989.png,http://face.com/image/hongjiu/201708/04/192243338083.png","date":"2017-08-04 19:22:43.000000","status":"5","uid":"1"},{"id":"1","category":"葡萄酒","produce":"阿富汗","name":"产品名称","city":"唐山市","switch":"1","price":"200.00","num":"10","content":"酒品描述","pic":"http://face.com/image/hongjiu/201708/04/192224375906.png","date":"2017-08-04 19:22:24.000000","status":"5","uid":"1"}]
             * allpage : 1
             * page : 1
             */

            private int allpage;
            private int page;
            private List<DataEntity> data;

            public int getAllpage() {
                return allpage;
            }

            public void setAllpage(int allpage) {
                this.allpage = allpage;
            }

            public int getPage() {
                return page;
            }

            public void setPage(int page) {
                this.page = page;
            }

            public List<DataEntity> getData() {
                return data;
            }

            public void setData(List<DataEntity> data) {
                this.data = data;
            }

            public static class DataEntity {
                /**
                 * id : 4
                 * category : 红酒
                 * produce : 阿根廷
                 * name : 产品名称
                 * city : 秦皇岛市
                 * switch : 1
                 * price : 200.00
                 * num : 10
                 * content : 酒品描述
                 * pic : http://face.com/image/hongjiu/201708/04/225135732285.png,http://face.com/image/hongjiu/201708/04/225135290813.png
                 * date : 2017-08-04 22:51:35.000000
                 * status : 5
                 * uid : 1
                 */

                private String id;
                private String category;
                private String produce;
                private String name;
                private String city;
                @SerializedName("switch")
                private String switchX;
                private String price;
                private String num;
                private String content;
                private String pic;
                private String date;
                @SerializedName("status")
                private String statusX;
                private String uid;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getCategory() {
                    return category;
                }

                public void setCategory(String category) {
                    this.category = category;
                }

                public String getProduce() {
                    return produce;
                }

                public void setProduce(String produce) {
                    this.produce = produce;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getCity() {
                    return city;
                }

                public void setCity(String city) {
                    this.city = city;
                }

                public String getSwitchX() {
                    return switchX;
                }

                public void setSwitchX(String switchX) {
                    this.switchX = switchX;
                }

                public String getPrice() {
                    return price;
                }

                public void setPrice(String price) {
                    this.price = price;
                }

                public String getNum() {
                    return num;
                }

                public void setNum(String num) {
                    this.num = num;
                }

                public String getContent() {
                    return content;
                }

                public void setContent(String content) {
                    this.content = content;
                }

                public String getPic() {
                    return pic;
                }

                public void setPic(String pic) {
                    this.pic = pic;
                }

                public String getDate() {
                    return date;
                }

                public void setDate(String date) {
                    this.date = date;
                }

                public String getStatusX() {
                    return statusX;
                }

                public void setStatusX(String statusX) {
                    this.statusX = statusX;
                }

                public String getUid() {
                    return uid;
                }

                public void setUid(String uid) {
                    this.uid = uid;
                }
            }
        }
    }
}
